package com.ruoyi.system.api.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

/**
 * 学生所属班级对象 school_student
 * 
 * @author ruoyi
 * @date 2022-11-19
 */
@Data
public class SchoolStudent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 所属校区 */
    private Long schoolId;

    @Excel(name = "所属校区")
    private String schoolName;

    /** 所属班级 */
    private Long classesId;

    @Excel(name = "所属班级")
    private String classesName;

    /** 学生ID */
    private Long studentId;
    @Excel(name = "学生用户名")
    private String xsUsername;
    @Excel(name = "学生电话")
    private String xsPhone;

    /** 操作老师ID */
    private Long teacherId;
    @Excel(name = "操作老师用户名")
    private String opUsername;
    @Excel(name = "操作老师电话")
    private String opPhone;

    private String userName;
    private String phonenumber;

    private List<Long> schoolList;
    private List<SchoolClasses> classesList;
    private List<SchoolStudent> studentList;
    private BigDecimal consumeAmount;

    private String createAtstart;
    private String createAtend;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("schoolId", getSchoolId())
            .append("classesId", getClassesId())
            .append("studentId", getStudentId())
            .append("teacherId", getTeacherId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
